“/”应用程序中的服务器错误。

参数无效。

说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.ArgumentException: 参数无效。

源错误:


行 73: 
行 74:         if (!File.Exists(srcPath)) srcPath = HttpContext.Current.Server.MapPath("/sitefiles/404.jpg");
行 75:         Image img = new Bitmap(srcPath);
行 76:         ThumImage(img, width, height);
行 77:     }

源文件: e:\host\xinzhicn\web\ashx\img.ashx    行: 75

堆栈跟踪:


[ArgumentException: 参数无效。]
   System.Drawing.Bitmap..ctor(String filename) +124
   img.ThumImage(String srcPath, Int32 width, Int32 height) in e:\host\xinzhicn\web\ashx\img.ashx:75
   img.ProcessRequest(HttpContext context) in e:\host\xinzhicn\web\ashx\img.ashx:26
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +406
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +76


版本信息: Microsoft .NET Framework 版本:2.0.50727.9061; ASP.NET 版本:2.0.50727.9062
Baidu
sogou